package com.example.chatroom.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 聊天室实体类
 * @author :ld
 * @date :2021/7/13
 */
@ApiModel
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Room {
    public Room(String roomId) {
        this.roomId = roomId;
    }

    @ApiModelProperty
    private String roomId;
    @ApiModelProperty
    private List<User> users;
}
